package com.yiyang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyang.pojo.BuildingRoom;
import com.yiyang.pojo.vo.PageResult;
import com.yiyang.pojo.vo.Result;

import java.util.List;

public interface BuildingRoomService extends IService<BuildingRoom> {
    Result<BuildingRoom> getBuildingRoomById(Integer id);

    Result<PageResult<List<BuildingRoom>>> getAllBuildingRoom(Integer currentPage, Integer pageSize, String type, String description);

    Result<Void> addBuildingRoom(BuildingRoom buildingRoom);

    Result<Void> updateBuildingRoom(BuildingRoom buildingRoom);

    Result<Void> deleteBuildingRoom(Integer id);

}
